package com.cohen.anotherclassycalculator;

public class calculator {

	public static double add(double num1, double num2){
		return (num1 + num2);
	}
	public static double subtract(double num1, double num2){
		return (num1 - num2);
	}
	public static double multiply(double num1, double num2){
		return (num1 * num2);
	}
	public static double divide(double num1, double num2){
		return (num1 / num2);
	}
	public static double exponent(double num1, double num2){
		double num3 = num1;
		for (int i = 1; i < num2; i++){
			num3 = num3*num1;
		}
		return num3;
	}
}
